﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sy3_3_1_
{
    internal class Rect
    {
        protected float length, width;

        public Rect()
        {
            length = 0;
            width = 0;
        }
        public Rect(float l, float w)
        {
            length = l;
            width = w;
        }
        public virtual float GetArea()
        {
            return length * width;
        }
        public float GetPerimeter()
        {
            return 2 * (length + width);
        }
    }
}
